package org.example.service;

/**
 * @BelongsProject: Dynamic-relationship-binding
 * @BelongsPackage: org.example.service
 * @Author: dengxiyan
 * @CreateTime: 2025/07/04  11:03
 * @Description: TODO
 * @Version: 1.0
 */
import org.example.dao.StudentRepository;
import org.example.dao.TeacherRepository;
import org.example.model.Student;
import org.example.model.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

@Service
public class TeacherService extends GenericEntityService<Teacher> {

    @Autowired
    private TeacherRepository teacherRepository;

    @Override
    protected JpaRepository<Teacher, Long> getRepository() {
        return teacherRepository;
    }
}
